package Application.Exceptions;

public class AppExceptions extends Exception
{
    static final String err_1 = "传入了错误的参数！";
    static final String err_2 = "config文件有误！";
    private final int errNum;

    public AppExceptions(int errNum)
    {
        this.errNum = errNum;
    }

    public String ErrGetter()
    {
        switch (errNum)
        {
            case 1:
                return err_1;
            case 2:
                return err_2;
        }
        return "未知错误！";
    }
}
